<?php if($this->beginCache($this->actionPath,array(
    'duration' => 600,
    'varyByParam' => array('cid', 'page', 'timeico'))) ){ ?>
<div class="container">
    <div class="tehui-col goodlist">
        <div class="col-md-12">
            <div class="title">
                <div class="pull-left">
                    <a href="<?php echo  $this->createUrl('/front/cat/yesterday',array('cid'=>$cid,'timeico'=>'td')); ?> ">
                        <span class="btn txslide <?php if($timeico == 'td'){ echo 'active';} ?> ">
                            <em>今日</em>热卖
                        </span>
                    </a>
                    <a href="<?php echo  $this->createUrl('/front/cat/yesterday',array('cid'=>$cid) ); ?>">                     
                        <span class="btn dj-btn txslide <?php if($timeico == 'y'){ echo 'active';} ?>" >
                            <em>上期</em>热卖
                        </span>
                    </a>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="body row">
            <?php foreach ($home_goods as $good): ?>
               <?php include $this->getViewFile('../lib/nohfgoodlist'); ?>
            <?php endforeach; ?>
        </div>
        <div class="clearfix"></div>
        <div class="pager" id="pager">
            <?php
//            $this->widget('CLinkPager', array(
//                'header' =>"",
//                'firstPageLabel' => '首页',
//                'lastPageLabel' => '末页',
//                'prevPageLabel' => '上一页',
//                'nextPageLabel' => '下一页',
//                'pages' => $pages,
//                'footer' => "<span>共<em>{$pages->pageCount}</em>页</span>",
//                'maxButtonCount' => 8
//                    )
//            );
echo $pages;
            ?>
        </div>
    </div>
</div>
<?php $this->endCache(); } ?>